#pragma once

#include <vector>
#include "..\Scrabble_Server\TopMessage.h"

using namespace std;
class Top10Manager
{
public:
	vector<TopMessage::TopElement> mTop;
	
	
public:
	Top10Manager(void);

public:
	void Update(PipeMessage* _msg, bool _destroyMsg = true);

	vector<TopMessage::TopElement> Elements() const { return mTop; }
	const TopMessage::TopElement& GetElementByUsername(string _username);
};

